package com.zipking.cloud.springbootmybatis.zh;

public class client {
    public static void main(String[] args) {

        Employee emp1 = new Employee("张三", "软件工程师");
        Employee emp2 = new Employee("李四", "UI设计师");

        Department engineering = new Department("工程部", "开发部门");
        engineering.addComponent(emp1);
        engineering.addComponent(emp2);

        Employee emp3 = new Employee("王五", "市场专员");
        Employee emp4 = new Employee("赵六", "销售代表");

        Department marketing = new Department("市场部", "市场部门");
        marketing.addComponent(emp3);
        marketing.addComponent(emp4);

        Company myCompany = new Company("xxx公司", "科技发展有限公司");
        myCompany.addComponent(engineering);
        myCompany.addComponent(marketing);

        // 显示公司组织结构
        myCompany.print();
    }

}
